<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<%@ include file="/WEB-INF/jsp/common/common.jsp"%>
<link href="${prcs}/css/def/bootstrap/ace/ace-part2.min.css" rel="stylesheet">
<link href="${prcs}/css/def/bootstrap/ace/ace.css" rel="stylesheet">
<link href="${prcs}/css/def/bootstrap/ace/ace-ie.min.css" rel="stylesheet">
<link href="${prcs}/css/def/frm/common/common.css" rel="stylesheet">
</head>
<style>
.HdClass {
	display: none!important;
}
input[disabled] {
	color: #848484 !important;
	background-color: #fff !important;
}
input[readonly] {
	color: #848484 !important;
	background-color: #fff !important;
}
table td {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}
table th {
	text-align: center;
}
</style>
<body>
	<div id="main" class="tab-content">
		<div class="head-title">
			<span>数据同步</span>
		</div>
		<div class="tab-top">
			<ul id="myTab" class="nav tab-ul">
				<li class="active"><a id="staffAnchor" href="#configList" data-toggle="tab">人员信息</a></li>
				<li><a id="orgAnchor" href="#other" data-toggle="tab">组织信息</a></li>
			</ul>
		</div>
		<!-- 个人参数列表 -->
		<div class="tab-pane fade active in"  id="configList">
			<div class="headerDiv"></div>
			<div class="container-fluid mid-body">
				<div class="row-fluid">
					<div class="span12">
						<form role="form" id="searchform">
							<div class="row">
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">人员编码</span> <input type="text"
										class="form-control" id="codeObj" name="code">
								</div>
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">姓名</span> <input type="text"
										class="form-control" id="nameObj" name="code">
								</div>
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">身份证号</span> <input type="text"
										class="form-control" id="empObj" name="code">
								</div>
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">邮箱账号</span> <input type="text"
										class="form-control" id="emailObj" name="code">
								</div>
							
								<div class="div-button col-md-pull-3">
								<a class="btn btn-info" onclick="reloadStaff()"><i class="ace-icon glyphicon glyphicon-search"></i>查询</a> 
								<a class="btn btn-info" onclick="syncStaff()"><i class="ace-icon glyphicon glyphicon-refresh"></i>同步</a>
								</div>
								
							</div>
						</form>
						<div class="hr"></div>
					</div>
					<div class="row">
						<table id="staffTable" class="display table table-bordered"
							style="border-collapse: collapse;" width="100%">
							<thead>
								<tr align="center">
										<th width="30" align="center"><input type="checkbox"
									id="checkAll" onclick="selectAllorNot()" /></th>
								<th>人员编码</th>
								<th>人员姓名</th>
								<th>身份证号</th>
								<th>性别</th>
								<th>邮箱</th>
								<th>在职状态</th>
								<th>岗位类型</th>
								<th>组织名称</th>
								<th>岗位信息创建时间</th>
								</tr>
							</thead>
						</table>
					</div>
				</div>
			</div>
		</div> 
		<!-- 系统参数列表结束 -->
	<div id="other" class="tab-pane fade">
		<div class="headerDiv"></div>
			<div class="container-fluid mid-body">
				<div class="row-fluid">
					<div class="span12">
						<form role="form" id="searchform">
							<div class="row">
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">组织编码</span> <input type="text"
										class="form-control" id="mdmOrgCodeObj" >
								</div>
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">HR编码</span> <input type="text"
										class="form-control" id="hrOrgCodeObj" >
								</div>
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">组织名称</span> <input type="text"
										class="form-control" id="orgNameObj" >
								</div>
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">组织类型</span><select
										class="form-control" id="cuncOrgClassObj">
										<option value="">--请选择--</option>
										<option value="ORG">&nbsp;&nbsp;&nbsp;组织</option>
										<option value="DEPT">&nbsp;&nbsp;&nbsp;部门</option>
										<option value="VORG">&nbsp;&nbsp;&nbsp;虚拟组织</option>
										<option value="S_CHNL">&nbsp;&nbsp;&nbsp;社会渠道</option>
										<option value="O_CHNL">&nbsp;&nbsp;&nbsp;自有渠道</option>
									</select>
								</div>
								<div class="input-group col-sm-3 free-3">
									<span class="input-group-addon">组织范围</span> <select
										class="form-control" id="cuncOrgScopeObj">
										<option value="">--请选择--</option>
										<option value="1">&nbsp;&nbsp;&nbsp;正式组织</option>
										<option value="2">&nbsp;&nbsp;&nbsp;SP/CP合作伙伴组织</option>
										<option value="3">&nbsp;&nbsp;&nbsp;供应商组织</option>
										<option value="4">&nbsp;&nbsp;&nbsp;渠道合作伙伴组织</option>
										<option value="5">&nbsp;&nbsp;&nbsp;临时组织</option>
									</select>
								</div>
							
								<div class="div-button col-md-pull-3">
								<a class="btn btn-info" onclick="reloadOrg()" id="orgSearchBtn"><i
									class="ace-icon glyphicon glyphicon-search"></i>查询</a> 
									 <a class="btn btn-info" onclick="syncOrg()"><i class="ace-icon glyphicon glyphicon-refresh"></i>同步</a> 
							</div>
							</div>
						</form>
						<div class="hr"></div>
					</div>
					<div class="row">
						<table id="orgTable" class="display table table-bordered"
							style="border-collapse: collapse;" width="100%">
							<thead>
								<tr align="center">
								<th width="30" align="center"><input type="checkbox"
									id="checkAll" onclick="selectAllorNot()" /></th>
								<th>组织编码</th>
								<th>HR编码</th>
								<th>组织名称</th>
								<th>组织全称</th>
								<th>组织类型</th>
								<th>组织范围</th>
								<th>组织状态</th>
							</tr>
							</thead>
						</table>
					</div>
				</div>
			</div>
	    </div> 
	</div>
	<script src="${prcs}/js/frm/sys/sysSync.js"></script>
</body>
</html>